#define _CRT_SECURE_NO_WARNINGS
#include <iostream>
using namespace std;
int gcd(int a, int b)
{
    int c;
    while (c = a % b) {
        a = b;
        b = c;
    }
    return b;
}

int main()
{
    int A, B;
    while (cin >> A >> B) {
        int m = max(A, B);
        cout << A * B / gcd(A, B) << endl;
    }
    return 0;
}